package com.cmsky.rapid.controller.admin;

import java.util.HashMap;
import java.util.Map;

import com.cmsky.open.core.base.BaseSpringController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.ModelAndView;

@Controller("admin.Index")
public class IndexController extends BaseSpringController{
	/** 
	 * 进入默认页面
	 **/
	public ModelAndView index(HttpServletRequest request,HttpServletResponse response) throws Exception {
		ModelAndView view = new ModelAndView("/Admin/index");
		Map<String,String> adminParams = new HashMap<String,String>();
		adminParams.put("title", "后台管理系统");
		adminParams.put("systemName", "Java后台管理系统");
		adminParams.put("copyright", "jandyfish");
		view.addObject("adminPage", adminParams);
		return view;
	}
	/** 
	 * 进入默认页面
	 **/
	public ModelAndView desc(HttpServletRequest request,HttpServletResponse response) throws Exception {
		ModelAndView view = new ModelAndView("/Admin/desc");
		Map<String,String> adminParams = new HashMap<String,String>();
		adminParams.put("title", "后台管理系统");
		adminParams.put("systemName", "Java后台管理系统");
		adminParams.put("copyright", "jandyfish");
		view.addObject("adminPage", adminParams);
		return view;
	}
}
